<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>Insert title here</title>
</head>
<body>
<script type="text/javascript" src="/MVC_Test1/JS/jquery.min.js"></script>
<script type="text/javascript">
 function check() {
	var name = $("#Account").val();
	var pwd = $("#Password").val();
	if(name==null){
		alert("账号为空 ");
		return false;
	}else if(pwd.length<6){
		alert("密码长度过短");
		return false;
	}else if (pwd.length>16) {
		alert("密码长度过长");
		return false;
	}
	else{
	alert("创建成功！");
	return true;
	}
}
</script>
	<form action="/MVC_Test1/UserAdd" method="post" onsubmit="return check()">
	<input type="text" name="user" id="Account" placeholder="请输入账号">
	<input type="text" name="pwd" id="Password" placeholder="请输入密码"> 
	<input type="submit" value="Add">
	</form>
</body>
</html>